Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

background.h

Go to the documentation of this file.
00001 /* -*- c -*- */
00002 #ifndef INCLUDED_LIB3DS_BACKGROUND_H
00003 #define INCLUDED_LIB3DS_BACKGROUND_H
00004 /*
00005  * The 3D Studio File Format Library
00006  * Copyright (C) 1996-2001 by J.E. Hoffmann <je-h@gmx.net>
00007  * All rights reserved.
00008  *
00009  * This program is  free  software;  you can redistribute it and/or modify it
00010  * under the terms of the  GNU Lesser General Public License  as published by 
00011  * the  Free Software Foundation;  either version 2.1 of the License,  or (at 
00012  * your option) any later version.
00013  *
00014  * This  program  is  distributed in  the  hope that it will  be useful,  but
00015  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
00016  * or  FITNESS FOR A  PARTICULAR PURPOSE.  See the  GNU Lesser General Public  
00017  * License for more details.
00018  *
00019  * You should  have received  a copy of the GNU Lesser General Public License
00020  * along with  this program;  if not, write to the  Free Software Foundation,
00021  * Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00022  *
00023  * $Id: background.h,v 1.1 2005/03/07 11:16:25 Assassin Exp $
00024  */
00025 
00026 #ifndef INCLUDED_LIB3DS_TYPES_H
00027 #include <lib3ds/types.h>
00028 #endif
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 /*!
00035  * Bitmap background settings
00036  * \ingroup background
00037  */
00038 typedef struct _Lib3dsBitmap {
00039     Lib3dsBool use;
00040     char name[64];
00041 } Lib3dsBitmap;
00042 
00043 /*!
00044  * Solid color background settings
00045  * \ingroup background
00046  */
00047 typedef struct _Lib3dsSolid {
00048     Lib3dsBool use;
00049     Lib3dsRgb col;
00050 } Lib3dsSolid;
00051 
00052 /*!
00053  * Gradient background settings
00054  * \ingroup background
00055  */
00056 typedef struct _Lib3dsGradient {
00057     Lib3dsBool use;
00058     Lib3dsFloat percent;
00059     Lib3dsRgb top;
00060     Lib3dsRgb middle;
00061     Lib3dsRgb bottom;
00062 } Lib3dsGradient;
00063 
00064 /*!
00065  * Background settings
00066  * \ingroup background
00067  */
00068 struct _Lib3dsBackground {
00069     Lib3dsBitmap bitmap;
00070     Lib3dsSolid solid;
00071     Lib3dsGradient gradient;
00072 };
00073 
00074 extern LIB3DSAPI Lib3dsBool lib3ds_background_read(Lib3dsBackground *background, Lib3dsIo *io);
00075 extern LIB3DSAPI Lib3dsBool lib3ds_background_write(Lib3dsBackground *background, Lib3dsIo *io);
00076 
00077 #ifdef __cplusplus
00078 };
00079 #endif
00080 #endif
00081 
00082 
00083 
00084 
00085 

Generated on Mon Sep 12 19:58:18 2005 for Destiny3D by doxygen1.3-rc3